Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@os-design/theming
Advanced tools
Before you start using the os-design components, you need to add the ThemeProvider that will apply the theme to all the components used.
Before you start using the os-design components, you need to add the ThemeProvider that will apply the theme to all the components used.
Install the package using the following command:
yarn add @os-design/theming
Also make sure that you have the @emotion/react package installed.
Create the emotion.d.ts
file with the following content:
import '@emotion/react';
import { Theme as BaseTheme } from '@os-design/theming';
declare module '@emotion/react' {
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface Theme extends BaseTheme {}
}
ThemeProvider
For example:
import React from 'react';
import { ThemeProvider } from '@os-design/theming';
import AppRouter from './AppRouter';
const App: React.FC = () => (
<ThemeProvider>
<AppRouter />
</ThemeProvider>
);
export default App;
See all theming features in the Storybook.
FAQs
Before you start using the os-design components, you need to add the ThemeProvider that will apply the theme to all the components used.
The npm package @os-design/theming receives a total of 17 weekly downloads. As such, @os-design/theming popularity was classified as not popular.
We found that @os-design/theming demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.